
from .import index_blue
from info import db
from flask import render_template,current_app
#装饰饰图函数
@index_blue.route('/',methods=["POST","GET"])
def w():
    #测试数据库
    db.create_all()
    #resis测试
    #redis_store.set("image_code","aabb")
    #测试session
    #session['user_name']="laowang"
    return render_template('news/index.html')
#引用LOGO
@index_blue.route('/favicon.ico')
def get_log():
    response= current_app.send_static_file("news/favicon.ico")

    return response